export default {
    state: () => {
        return {
            waitDoneList: []
        }
    },
    mutations: {
        deleteByItem(state, item) {
            state.waitDoneList.splice(state.waitDoneList.findIndex(e => e.id === item.id), 1)
        },
        addItem(state, item) {
            state.waitDoneList.push(item)
        }
    },
    getters: {
        checkedList(state) {
            return state.waitDoneList.filter(e => e.checked)
        }
    }
}


